﻿
using AutoMapper;
using BCCommon;
using BCCommon.Enums;
using BCDto.Common.Case.WebsiteCase;
using BCDto.Common.Case.WebsiteCaseAttachment;
using BCEntity.Common.Case.WebsiteCase;
using BCEntity.Common.Case.WebsiteCaseAttachment;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.MapperProfiles.Common.Case
{
    public class WebsiteCaseProfile : Profile
    {
        public WebsiteCaseProfile()
        {
            //官网案例
            CreateMap<WebsiteCaseDto, WebsiteCaseEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCaseRequestDto, WebsiteCasePutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCaseRequestDto, WebsiteCaseEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCasePutDto, WebsiteCaseEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCaseEntity, WebsiteCaseDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCaseEntity, WebsiteCaseViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCaseAttachmentRequestDto, WebsiteCaseAttachmentEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteCaseAttachmentEntity, WebsiteCaseAttachmentDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}